<?php $products_attributes = $form->getObject() ?>
<h1><?php echo $products_attributes->isNew() ?  __("New Attributes") : __("Edit Attributes")?></h1>

<form action="<?php echo url_for('products_attributes/update'.(!$products_attributes->isNew() ? '?products_attributes_id='.$products_attributes->getProductsAttributesId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
  <table>
    <tfoot>
      <tr>
        <td colspan="2">
          &nbsp;<a href="<?php echo url_for('products_attributes/index') ?>"><?php echo __("Cancel") ?></a>
          <?php if (!$products_attributes->isNew()): ?>
            &nbsp;<?php echo link_to('Delete', 'products_attributes/delete?products_attributes_id='.$products_attributes->getProductsAttributesId(), array('post' => true, 'confirm' => 'Are you sure?')) ?>
          <?php endif; ?>
          <input type="submit" value= <?php echo __("Save") ?> />
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?php echo $form->renderGlobalErrors() ?>
      <tr>
        <th><?php echo $form['products_id']->renderLabel() ?></th>
        <td>
          <?php echo $form['products_id']->renderError() ?>
          <?php echo $form['products_id'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['options_id']->renderLabel() ?></th>
        <td>
          <?php echo $form['options_id']->renderError() ?>
          <?php echo $form['options_id'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['options_values_id']->renderLabel() ?></th>
        <td>
          <?php echo $form['options_values_id']->renderError() ?>
          <?php echo $form['options_values_id'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['options_values_price']->renderLabel() ?></th>
        <td>
          <?php echo $form['options_values_price']->renderError() ?>
          <?php echo $form['options_values_price'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['price_prefix']->renderLabel() ?></th>
        <td>
          <?php echo $form['price_prefix']->renderError() ?>
          <?php echo $form['price_prefix'] ?>

        <?php echo $form['products_attributes_id'] ?>
        </td>
      </tr>
    </tbody>
  </table>
</form>
